package {
	
	import flash.display.Sprite;
	import flash.display.StageScaleMode;
   	import flash.display.StageAlign;
   	import flash.display.LoaderInfo;
	
	import com.pavelk.orion.ApplicationFacade;


	[SWF(width="970", height="710", frameRate="30", backgroundColor="#ffffff")]
	
	public class Orion extends Sprite
	{
		
		private var facade   :ApplicationFacade;
		private var flashVars:Object;
		
		public function Orion()
		{
			StageReference.setStage( stage );
			
			stage.scaleMode = StageScaleMode.NO_SCALE;
         	stage.align     = StageAlign.TOP_LEFT;
         	
         	flashVars = LoaderInfo( this.loaderInfo ).parameters;
         	facade = ApplicationFacade.getInstance( );
			facade.startup( this, flashVars );
		}
	}
}